﻿using Coldairarrow.Entity.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Interface
{

    public class ZB_ReqDTO_PushOrder
    {
        /// <summary>
        /// One_linkID
        /// </summary>
        public string RowId { get; set; }
        /// <summary>
        /// One_linkID
        /// </summary>
        public string ResultMsg { get; set; }
        /// <summary>
        /// 自定义编号
        /// </summary>
        public string referenceNo { get; set; }

        /// <summary>
        /// 自定义编号
        /// </summary>
        public string referenceNo_before { get; set; }
        /// <summary>
        /// 物流跟踪号
        /// </summary>
        public string trackingNo { get; set; }
        /// <summary>
        /// 拣货类型:1=>一票一件,2=>一票一件多个,3=>一票多件
        /// </summary>
        public int pickType { get; set; }
        /// <summary>
        /// 收件公司名称
        /// </summary>
        public string companyName { get; set; }
        /// <summary>
        /// 联系人名称
        /// </summary>
        public string contactName { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string contactMobile { get; set; }
        /// <summary>
        /// 联系人分机号
        /// </summary>
        public string contactCellMobile { get; set; }
        /// <summary>
        /// 联系人邮箱
        /// </summary>
        public string contactEmail { get; set; }
        /// <summary>
        /// 州/省
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 区/县
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// 收件人门牌号
        /// </summary>
        public string doorplate { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 邮编
        /// </summary>
        public string postcode { get; set; }
        /// <summary>
        /// 需要签名服务:-1=>否,1=>是
        /// </summary>
        public int isSign { get; set; }
        /// <summary>
        /// 签名类型:1=>直接签名,2=>间接签名,3=>成人签名
        /// </summary>
        public int signType { get; set; }
        /// <summary>
        /// 需要保险服务:-1=>否,1=>是
        /// </summary>
        public int isInsure { get; set; }
        /// <summary>
        /// 保险金额(USD)
        /// </summary>
        public string insurePrice { get; set; }
        /// <summary>
        /// 加急类型:-1=>无,2=>VC订单,3=>Prime订单（B2C）
        /// </summary>
        public int primeType { get; set; }
        /// <summary>
        /// 库存类型:1=>全部,2=>标准,3=>退件优先
        /// </summary>
        public string inventoryType { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 仓库代码
        /// </summary>
        public string warehouseCode { get; set; }
        /// <summary>
        /// 渠道代码
        /// </summary>
        public string shippingMethodCode { get; set; }
        /// <summary>
        /// 国家二字码
        /// </summary>
        public string code2 { get; set; }

        public B2CDto b2cDto { get; set; }

        public class B2CDto
        {
            /// <summary>
            /// VAT税号（B2C）
            /// </summary>
            public string vatTaxNo { get; set; }
            /// <summary>
            /// 销售平台（B2C）
            /// </summary>
            public string salePlatform { get; set; }
            /// <summary>
            /// 平台店铺（B2C）
            /// </summary>
            public string platformStore { get; set; }

        }

        public List<ItemDTOs> itemDTOs { get; set; }
        public class ItemDTOs
        {
            /// <summary>
            /// 产品SKU
            /// </summary>

            public string productSku { get; set; }
            /// <summary>
            /// 数量
            /// </summary>

            public int qty { get; set; }
            /// <summary>
            /// 箱号（B2B）
            /// </summary>

            public string boxNo { get; set; }
            /// <summary>
            /// 平台SKU编码（B2B）
            /// </summary>

            public string platformSku { get; set; }


        }
        /// <summary>
        /// 附件列表
        /// </summary>

        public List<AttachmentOpenDTOs> attachmentOpenDTOs { get; set; }

        public class AttachmentOpenDTOs
        {
            /// <summary>
            /// 附件类型:SHIPMENT_LABEL（物流运单）、CARDBOARD_LABEL（卡板唛）、BOX_MARK（箱唛）、BOL、OTHER（其他）
            /// </summary>

            public string attachmentType { get; set; }
            /// <summary>
            /// base64编码
            /// </summary>

            public string base64 { get; set; }
            /// <summary>
            /// 文件名称
            /// </summary>

            public string fileName { get; set; }


        }

    }
}
